package testing;

import game.GameBase;
import game.Item;
import game.ItemContainer;

import javax.swing.JFrame;

import GUI.Backgrounds;
import GUI.ButtonSkin;
import GUI.ContainerTransactionPanel;
import GUI.ItemContainerView;
import GUI.SkinnedButton;

public class KontejnerTest extends JFrame
{
	public KontejnerTest()
	{
		super("KontajnerTest");
		
		ItemContainer ic1 = new ItemContainer(50, 1000);
		for(int n = 0; n < 50; ++n)
			ic1.Add(Item.genItem(50));
		
		ItemContainer ic2 = new ItemContainer(50, 1000);
		for(int n = 0; n < 50; ++n)
			ic2.Add(Item.genItem(50));
		
		//ItemContainerView icv = new ItemContainerView(ic);
		ContainerTransactionPanel icv = new ContainerTransactionPanel();
		icv.setLeftContainer(ic1, "Lijevi");
		icv.setRightContainer(ic2, "Desni");
		
		//SkinnedButton sb = new SkinnedButton(ButtonSkin.getButtonByTag("Button1"), "Dugmence");
		
		
		//this.setLayout(null);
		//this.setSize(350, 380);
		
		this.add(icv);
		this.pack();
		//icv.setSize(400, 400);
		//this.add(sb);
		//sb.setLocation(50, 50);
		//sb.setSize(200, 50);
		
		this.setVisible(true);
		
		setDefaultCloseOperation(EXIT_ON_CLOSE);
	}
	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		GameBase.get();
		
//		ItemContainer ic1 = new ItemContainer(50, 1000);
//		for(int n = 0; n < 5; ++n)
//			ic1.Add(Item.genItem(10));
//		
//		ItemContainer ic2 = new ItemContainer(50, 1000);
//		for(int n = 0; n < 5; ++n)
//			ic2.Add(Item.genItem(10));
		
		//ItemContainerView icv = new ItemContainerView(ic);
		//ContainerTransactionPanel icv = new ContainerTransactionPanel();
		//icv.setLeftContainer(ic1);
		//icv.setRightContainer(ic2);
		//ContainerTransactionPanel.showInFrame(null, ic1, ic2);
		
		new KontejnerTest();
		
	}

}
